//
//  UITextField+MSCustom.m
//  MSJD
//
//  Created by 箭军刘 on 2018/10/14.
//  Copyright © 2018年 xiangbo. All rights reserved.
//

#import "UITextField+MSCustom.h"

@implementation UITextField (MSCustom)

- (void)changeTextFieldPlaceHolderStatus {
    NSMutableAttributedString *placeholder = [[NSMutableAttributedString alloc] initWithString:self.placeholder];
    UIColor *placeholderColor = [UIColor colorWithRed:212.0/255.0 green:212.0/255.0 blue:212.0/255.0 alpha:1.0];
    [placeholder addAttributes:@{NSForegroundColorAttributeName:placeholderColor,NSFontAttributeName:[UIFont systemFontOfSize:14]} range:NSMakeRange(0, self.placeholder.length)];
    self.attributedPlaceholder = placeholder;
}

@end
